import service from '../index'

// export function getBanner(){
//     return service({
//         method:'GET',
//         url:'/banner'
//     })
// }

export const getBanner = () => service({url:'/banner',method:'GET'})

export const getMusicList = () =>service({url:'/personalized?limit=10',method:'GET'})

export const songDetail = (id) => service({url:`/playlist/detail?id=${id}`,method:'GET'})

export const getAllSong = (id) => service({url:`/playlist/track/all?id=${id}&limit=20&offset=0`,method:'GET'})

export const getSongUrl = (id) => service({url:`/song/url?id=${id}`,method:'GET'})

export const getLyric = (id) => service({url:`/lyric?id=${id}`,method:'GET'}) 

export const getSearch = (key) =>service({url:`/cloudsearch?keywords=${key}`,method:'GET'})

export const getLogin = (data) => service({url:`/login/cellphone?phone=${data.phone}&password=${data.password}`,method:'GET'})

export const getYouKe = () => service({url:'/register/anonimous',method:'GET'})